﻿using NationalD3.Domain.Entities;
using NationalD3.Domain.Interfaces;
using NationalD3.Infrastructure.Data.Context;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace NationalD3.Infrastructure.Data.Repositories
{
    public class StudentRepository : Repository<Student, Guid>, IStudentRepository
    {
        public StudentRepository(StudentContext context) 
            :base(context)
        {
        }

        public Student GetByEmail(string email)
        {
            return DbSet.Where(s => s.Email.Equals(email)).SingleOrDefault();
        }
    }
}
